Defines a collection of PDF pages.

Full documentation

Adds a new page at the end of the collection.

Full documentation

Clears the collection.

Full documentation

This method supports the internal library infrastructure and should not be used by external client code.

Full documentation

Converts the internal pages structure from a list to a tree.
By default, the library stores the pages in a single list which can become very large if the document has many pages. Some PDF processors have trouble procesing such long lists, so this method transform the internal pages structure into a tree.
Note: This method should be called only once before the document is saved and only on documents creates from scratch with the library.

Full documentation

This method supports the internal library infrastructure and should not be used by external client code.

Full documentation

This method supports the internal library infrastructure and should not be used by external client code.

Full documentation

Removes an object from the collection.

Full documentation

Removes the object at the specified index from the collection.

Full documentation

This method supports the internal library infrastructure and should not be used by external client code.

Full documentation

Replaces an object at the specified index in the collection.

Full documentation

This method supports the internal library infrastructure and should not be used by external client code.

Full documentation